//之前这里命名为index.js了

import { createRouter, createWebHistory } from 'vue-router';
import Login from '../components/Login.vue';
import Dashboard from "@/components/Dashboard.vue"; // 导入登录组件的路径可能需要根据你的实际项目结构调整

const routes = [
    {
        path: '/login',
        component: Login
    },
    {
        path: '/dashboard',
        name: 'Dashboard',
        component: Dashboard
    },
    // 可以添加其他路由
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
